/*
 *  array/larger.c
 *
 *  (C) 2011 Harry Wei
 */

#include <stdio.h>
#include <string.h>

void combine(char *s1, char *s2)
{
	/* The length of array_outstr_is not stationary */
	char outstr[strlen(s1) + strlen(s2) + 2];
	
	strcpy(outstr, s1);
	strcat(outstr, s2);
	strcat(outstr, s2);
	printf("%s\n", outstr);
}

void fillarray(int len, char letters[len])
{ /* void fillarray(int len; char letters[len], int len); */
	int i;

	char c = 'A';
	for (i = 0; i < len; i++)
		letters[i] = c++;
}

int main(void)
{
	char a;

	combine("woshijiawei", "who are you");
	fillarray(5, a); /* How to send the second variable ??? */
	return 0;
}
